<?php
class worksProfile extends CWidget
{
	
	public $id;	
	
	public function getData()
	{
		return Media::model()->findByPk($id);
	}
	
	public function run()
	{	

		$this->render('profile',array(
			'model' => $this->getData()
		));
	}
}
?>